import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 导入 Mock 配置
import './mock'

// 导入全局的样式文件
import './assets/styles/reset.less'

// 注册全局组件 (后面会使用 插件{} 写法进行优化)
import TypeNav from './components/TypeNav'
import Pagination from './components/Pagination'
Vue.component('TypeNav', TypeNav)
Vue.component('SphPagination', Pagination)

Vue.config.productionTip = false

new Vue({
  router,
  store,
  beforeCreate() {
    // 注册事件总线
    Vue.prototype.$eventBus = this
  },
  render: (h) => h(App)
}).$mount('#app')
